/*
从数据库中获取指定用户的所有英雄ID_MAINDB_GET_USR_HEROS
*/

#ifndef __CMDSELECTDATAFROMDBSVR_H__
#define __CMDSELECTDATAFROMDBSVR_H__
#include "CTAsyncCmd.h"
#include "../maindef.h"
#include "commmsg.h"

class CMainCtrl;
class CCmdSelectDataFromDBSvr: public CTAsyncCmd
{
public:
    CCmdSelectDataFromDBSvr();
    virtual ~CCmdSelectDataFromDBSvr();

    int Do(void* pData);
    virtual int OnAnswer(void* pData);

public:
    CMainCtrl* pstMainCtrl;
    CReqSelectData stReq;
    CAnsSelectData stAns;

private:
    static char szBuf[CTMsgHead::EMAX_MSGLEN]; 
    int StoreData(char* szDataBuf, int iDataLen);
};


#endif


